#import "YQPOrderInfoModel.h"

#import <UIKit/UIKit.h>

typedef enum : NSUInteger {
    YQPOrderItemLeft,
    YQPOrderItemRight,
} YQPOrderItem;


@protocol YQOrderDetailsBottonViewDelegate <NSObject>

- (void)didClickItemToPayModel:(YQPOrderInfoModel *_Nullable)model;

- (void)didClickItemToCancelModel:(YQPOrderInfoModel *_Nullable)model;

- (void)didClickItemToRemoveModel:(YQPOrderInfoModel *_Nullable)model;

- (void)didClickItemToOrderModel:(YQPOrderInfoModel *_Nullable)model;

- (void)didClickItemToCommentModel:(YQPOrderInfoModel *_Nullable)model;

- (void)didClickItemToConfirmReceiveModel:(YQPOrderInfoModel *_Nullable)model;

- (void)selectItem:(NSInteger)itme;//0左边，1k右边

@end

NS_ASSUME_NONNULL_BEGIN

@class YQGoodsOrderDetailsModel;

@interface YQOrderDetailsBottonView : UIView

@property (strong, nonatomic) YQPOrderInfoModel *model;

@property (weak, nonatomic) IBOutlet QMUIGhostButton *leftBtn;

@property (weak, nonatomic) IBOutlet QMUIGhostButton *rightBtn;

@property (nonatomic, weak) id<YQOrderDetailsBottonViewDelegate> delegate;

@property (nonatomic, strong) YQGoodsOrderDetailsModel * orderDetailsModel;

@property (nonatomic, assign) BOOL isAftersale;

//资讯
@property (nonatomic, strong) YQGoodsOrderDetailsModel * newsOrderModel;
@end

NS_ASSUME_NONNULL_END
